﻿
@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    var keyValue = $.request("keyValue");
    $(function () {
        initControl();
        $.najax({
            url: "/Module/GetFormJson",
            data: { keyValue: keyValue },
            dataType: "json",
            async: false,
            success: function (data) {
                $("#form1").formSerialize(data);
                $("#form1").find('.form-control,select,input').attr('readonly', 'readonly');
                $("#form1").find('div.ckbox label').attr('for', '');
            }
        });
    });
    function initControl() {
        $("#Target").select2({
            minimumResultsForSearch: -1
        });
        $("#ParentId").bindSelect({
            url: "/Module/GetTreeSelectJson",
        });
    }
</script>
<form id="form1">
    <div style="margin-top: 10px; margin-left: 10px; margin-right: 10px;">
        <ul class="nav nav-tabs">
            <li role="presentation" class="active"><a href="#">基本信息</a></li>
        </ul>
        <div style="padding-top: 20px; margin-right: 30px;">
            <table class="form">
                <tr>
                    <th class="formTitle">上级：</th>
                    <td class="formValue">
                        <select id="ParentId" name="ParentId" class="form-control">
                            <option value="0">父节点</option>
                        </select>
                    </td>
                    <th class="formTitle">名称：</th>
                    <td class="formValue">
                        <input id="Name" name="Name" type="text" class="form-control" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">连接：</th>
                    <td class="formValue">
                        <input id="UrlAddress" name="UrlAddress" type="text" class="form-control" />
                    </td>
                    <th class="formTitle">目标：</th>
                    <td class="formValue">
                        <select id="Target" name="Target" class="form-control">
                            <option value="">==请选择==</option>
                            <option value="expand" title="expand">无页面</option>
                            <option value="iframe" title="iframe">框架页</option>
                            <option value="open" title="open">弹出页</option>
                            <option value="blank" title="blank">新窗口</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">图标：</th>
                    <td class="formValue">
                        <div class="input-group">
                            <input id="Icon" name="Icon" type="text" class="form-control">
                            @*<span class="input-group-btn">
                                    <a class="btn  btn-primary"><i class="fa fa-ellipsis-h"></i></a>
                                </span>*@
                        </div>
                    </td>
                    <th class="formTitle">排序：</th>
                    <td class="formValue">
                        <input id="px" name="px" type="text" class="form-control" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle" style="height: 35px;">选项：</th>
                    <td class="formValue" colspan="3" style="padding-top: 1px;">
                        <div class="ckbox">
                            <input id="zt" name="zt" type="checkbox" checked="checked"><label for="zt">有效</label>
                        </div>
                    </td>
                </tr>
                <tr>
                    <th class="formTitle" valign="top" style="padding-top: 5px;">
                        介绍：
                    </th>
                    <td class="formValue" colspan="3">
                        <textarea id="Description" name="Description" class="form-control" style="height: 100px;"></textarea>
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">创建人员：</th>
                    <td class="formValue">
                        <input id="CreatorCode" name="CreatorCode" type="text" class="form-control" />
                    </td>
                    <th class="formTitle">创建时间：</th>
                    <td class="formValue">
                        <input id="CreateTime" name="CreateTime" type="text" class="form-control" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">修改人员：</th>
                    <td class="formValue">
                        <input id="LastModifierCode" name="LastModifierCode" type="text" class="form-control" />
                    </td>
                    <th class="formTitle">修改时间：</th>
                    <td class="formValue">
                        <input id="LastModifyTime" name="LastModifyTime" type="text" class="form-control" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
</form>

